﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PagedList<EnterpriseManagement.Models.TeamMemberModel>>" %>
<%@ Import Namespace="EnterpriseManagement.Models"%>
<%@ Import Namespace="Webdiyer.WebControls.Mvc"%>
<style>
.fixedtdwidth
{
	width:100px;
}
</style>
<div id="normalteammember">
<%TeamMemberModel teamMember=Model.First(); %>
<hr width="90%" />

<table class ="noframe" style ="margin-left:10%">
    <tr>
        <td class ="fixedtdwidth"><%:Html.LabelFor(model => teamMember.ProjectName)%></td>  
        <td class ="fixedtdwidth"><%:Html.LabelFor (model=>teamMember.EmployeeId) %></td>
        <td class ="fixedtdwidth"><%:Html.LabelFor(model => teamMember.EmployeeName)%></td>
        <td class ="fixedtdwidth"><%:Html.LabelFor(model => teamMember.Position)%></td>
        <td class ="fixedtdwidth"><%:Html.LabelFor(model => teamMember.Director)%></td>
        <td class ="fixedtdwidth"><%:Html.LabelFor(model => teamMember.StartTime)%></td>
        <td class ="fixedtdwidth"><%:Html.LabelFor(model => teamMember.EndTime)%></td>        
    </tr>

<%foreach (TeamMemberModel model in Model)
  { %>
    <tr>
        <td class="display-field"><%: model.ProjectName%></td> 
        <td class="display-field"><%: model.EmployeeId%></td>
        <td class="display-field"><%: model.EmployeeName%></td>
        <td class="display-field"><%: model.Position%></td>
        <td class="display-field"><%: model.Director%></td>
        <td class="display-field"><%: model.StartTime%></td>
        <td class="display-field"><%: model.EndTime%></td>
     
    </tr>
<%} %>

</table>
<div style ="text-align:center">
   <%=Ajax.Pager(Model,new PagerOptions(){PageIndexParameterName="id"},
                                             new AjaxOptions() { UpdateTargetId = "normalteammember" })%>

   </div>

   </div>